package com.tigase.service;

import com.tigase.bean.TigaseMessage;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

/**
 * Created by qt2 on 2017/7/21.
 */
public interface MessageService {
    //保存消息
    int insertMessage(TigaseMessage tigaseMessage);

    //获取消息
    List<TigaseMessage> getAll(String messageFrom,String messageTo);

    //删除消息(发送时间为参数)
    int deleteMessage(Timestamp sendTime);

    //删除消息（现在时间为参数）
    int moveMessage(Timestamp nowTime);
}
